<%= form_for [:admin, @seckill_time], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">
      <%= @seckill_time.new_record? ? "新增时间" : "修改时间" %>
    </h3>
    <div class="row">
      <div class="col-md-6">
        <div class="form-group">
          <label class="form-label">时间</label>
          <%= f.number_field :name, class: "form-control", min: 0, max: 24 %>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <%= f.submit "保 存", class: "btn btn-primary" %>
  </div>
<% end %>